package com.zan.pattern.strategy;

/**
 * @Author Zan
 * @Create 2024/4/26 21:07
 * @Description : TODO(请用一句话描述该类的功能)
 * @ClassName: Client
 */
public class Client {
    public static void main(String[] args) {
        // 春节来了，使用春节促销活动A
        SalesMan salesMan1 = new SalesMan(new StrategyA());
        // 展示促销活动
        salesMan1.salesManShow();

        System.out.println("=====================");

        // 中秋节到了，使用中秋节促销活动B
        SalesMan salesMan2 = new SalesMan(new StrategyB());
        salesMan2.salesManShow();

    }
}
